﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="OfficesPullDown.aspx.cs" Inherits="ServicesSheet_OfficesPullDown" %>

<%@ Register Assembly="ZLTextBox" Namespace="BaseText" TagPrefix="cc1" %>
<%@ Register Src="../Control/DSelYearMonth.ascx" TagName="DSelYearMonth" TagPrefix="uc3" %>
<%@ Register Src="../Control/DepartmentDList.ascx" TagName="DepartmentDList" TagPrefix="uc1" %>
<%@ Register src="../Control/SelUser.ascx" tagname="SelUser" tagprefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Titile" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Content" runat="Server">
    <div>
        <div>
            <infolight:webdatasource id="wdsEmpId" runat="server" selectalias="Usasdb" selectcommand="select &#13;&#10;Employees.EmployeeID,&#13;&#10;Employees.EmpName,&#13;&#10;Department.DepartmentName &#13;&#10;FROM Employees&#13;&#10; left join Department on Employees.DepartmentId=Department.DepartmentId&#13;&#10;WHERE (Employees.EmpStatus = 1)">
            </infolight:webdatasource>
            <table cellpadding="0" cellspacing="5" class="TbSearch">
                <tr>
                    <td style="width: 40px">
                        <asp:Label ID="Label5" runat="server" Text="部门:"></asp:Label>
                    </td>
                    <td>
                        <uc1:DepartmentDList ID="DepartmentDList1" runat="server"></uc1:DepartmentDList>
                    </td>
                    <td style="width: 40px">
                        <asp:Label ID="Label22" runat="server" Text="日期:"></asp:Label>
                    </td>
                    <td>
                        <uc3:DSelYearMonth ID="DSelYearMonth1" runat="server"></uc3:DSelYearMonth>
                    </td>
                    <td style="width: 40px">
                        <asp:Label ID="Label1" runat="server" Text="员工:"></asp:Label>
                    </td>
                    <td>
                        <uc2:SelUser ID="SelUser" runat="server" />
                        
                    </td>
                 <td style="width: 50px">
            </td>
                </tr>
                <tr>
                    <td colspan="6" style="text-align: right;">
                        <span class="roundbtn">
                            <asp:LinkButton ID="LinkButton1" runat="server" Text="&nbsp;&nbsp;&nbsp;&nbsp;查 询&nbsp;&nbsp;&nbsp;&nbsp;" OnClick="btnSearch_Click"></asp:LinkButton>
                        </span>&nbsp; &nbsp; &nbsp; &nbsp;<%-- <span class="roundbtn">
                            <asp:LinkButton ID="LinkButton2" runat="server" Text="清除条件" OnClick="btnClear_Click"></asp:LinkButton>
                        </span>--%>&nbsp; &nbsp; &nbsp; &nbsp; <span class="roundbtn">
                            <asp:LinkButton ID="btnSave" runat="server" Text="行政确认保存" OnClick="ButSave_Click"
                                CommandName="Save" OnClientClick="return confirm('确认执行？')"></asp:LinkButton>
                        </span>
                    </td>
                </tr>
            </table>
        </div>
        <infolight:webgridview id="wgvMaster" runat="server" aborticonurl="../Image/UIPics/Abort.gif"
            addiconurl="../Image/UIPics/Add.gif" applyiconurl="../Image/UIPics/Apply.gif"
            backcolor="White" bordercolor="White" borderstyle="Groove" borderwidth="2px"
            canceliconurl="../Image/UIPics/Cancel.gif" cellpadding="1" createinnernavigator="False"
            forecolor="#333333" headerstylewrap="False" mouseoveraborticonurl="../Image/UIPics/Abort2.gif"
            mouseoveraddiconurl="../Image/UIPics/Add2.gif" mouseoverapplyiconurl="../Image/UIPics/Apply2.gif"
            mouseovercanceliconurl="../Image/UIPics/Cancel2.gif" mouseoverokiconurl="../Image/UIPics/OK2.gif"
            mouseoverqueryiconurl="../Image/UIPics/Query2.gif" okiconurl="../Image/UIPics/OK.gif"
            onpageindexchanging="wgvMaster_PageIndexChanging" pagesize="20" queryiconurl="../Image/UIPics/Query.gif"
            totalcaption="合计" width="100%">
            <footerstyle backcolor="#507CD1" font-bold="True" forecolor="White" />
            <totalcolumns>
                <InfoLight:GridViewTotalItem FieldName="Counts" />
            </totalcolumns>
            <pagersettings mode="NumericFirstLast" />
            <selectedrowstyle backcolor="#D1DDF1" font-bold="True" forecolor="#333333" />
            <rowstyle backcolor="#EFF3FB" />
            <alternatingrowstyle backcolor="White" bordercolor="White" />
            <editrowstyle backcolor="#2461BF" />
            <columns>
                <asp:TemplateField HeaderText="申请单编号" SortExpression="SuppliesId" Visible="False">
                    <itemtemplate>
<asp:Label id="Label1" runat="server" Text='<%# Bind("SuppliesId") %>' __designer:wfdid="w2"></asp:Label> <asp:Label id="UnitPriceLabel" runat="server" Text='<%# Bind("UnitPrice") %>' __designer:wfdid="w4"></asp:Label>
</itemtemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="明细序号" SortExpression="DetailsId" Visible="False">
                    <itemtemplate>
<asp:Label id="Label2" runat="server" Text='<%# Bind("DetailsId") %>' __designer:wfdid="w1"></asp:Label> 
</itemtemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="日期" SortExpression="SuppliesYear">
                    <itemtemplate>
                       <asp:Label id="Labe31" runat="server" Text='<%# Eval("SuppliesYear")%>' __designer:wfdid="w1"></asp:Label> 
                   
</itemtemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="员工编号" Visible="False">
                    <itemtemplate>
<asp:Label id="Label4" runat="server" Text='<%# Bind("EmpId") %>' __designer:wfdid="w60"></asp:Label>
</itemtemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="EmpName" HeaderText="员工" SortExpression="EmpName" />
                <asp:BoundField DataField="DepartmentName" HeaderText="部门" SortExpression="DepartmentName" />
                <asp:TemplateField HeaderText="办公品编号" SortExpression="SId" Visible="False">
                    <itemtemplate>
<asp:Label id="Label3" runat="server" Text='<%# Bind("SId") %>' __designer:wfdid="w57"></asp:Label>
</itemtemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="SName" HeaderText="办公品名称" SortExpression="SName" />
                <asp:BoundField DataField="SType" HeaderText="型号" SortExpression="SType" />
                <asp:BoundField DataField="Counts" HeaderText="申请数量" SortExpression="Counts" />
                <asp:CheckBoxField DataField="IsConfirm" HeaderText="是否确认" />
                <asp:BoundField DataField="CCounts" HeaderText="已领数量" SortExpression="CCounts" />
                <asp:TemplateField HeaderText="现领数量" SortExpression="NCounts">
                    <itemtemplate>
<cc1:ZLTextBox id="ZLNCounts" language="English" onfocus="this.style.imeMode='disabled';" ondrop="return regInput(this,/^[-+]?\d*$/,event.dataTransfer.getData('Text'))" onkeypress="return regInput(this,&#9;/^[-+]?\d*$/,String.fromCharCode(event.keyCode))" onpaste="return regInput(this,/^[-+]?\d*$/,window.clipboardData.getData('Text'))" runat="server" Width="70px" Text='<%# Bind("NCounts") %>' __designer:wfdid="w1" InputType="number" MaxLength="5" IsDisplayTime="True" ShowMessage FloatLength="2" onfocusCssName textValue onblurCssName></cc1:ZLTextBox> 
</itemtemplate>
                </asp:TemplateField>
                
            </columns>
            <navcontrols>
                <InfoLight:ControlItem ControlName="Add" ControlText="add" ControlType="Image" ControlVisible="True"
                    ImageUrl="../image/uipics/add.gif" MouseOverImageUrl="../image/uipics/add2.gif"
                    Size="25" />
                <InfoLight:ControlItem ControlName="OK" ControlText="Insert" ControlType="Image"
                    ControlVisible="True" ImageUrl="../image/uipics/ok.gif" MouseOverImageUrl="../image/uipics/ok2.gif"
                    Size="25" />
                <InfoLight:ControlItem ControlName="Cancel" ControlText="cancel" ControlType="Image"
                    ControlVisible="True" ImageUrl="../image/uipics/cancel.gif" MouseOverImageUrl="../image/uipics/cancel2.gif"
                    Size="25" />
            </navcontrols>
            <headerstyle backcolor="DeepSkyBlue" font-bold="True" forecolor="White" />
            <pagerstyle backcolor="LightBlue" forecolor="White" horizontalalign="Center" />
        </infolight:webgridview>
    </div>
</asp:Content>
